<template>
    <div class="tabbar">
        <router-link class="block" to="/home" active-class="active">
            <img src="https://dummyimage.com/30x30/ff0" alt="">
            <div>首页</div>
        </router-link>
        <router-link class="block" to="/order" active-class="active">
            <img src="https://dummyimage.com/30x30/0ff" alt="">
            <div>订单</div>
        </router-link>
        <router-link class="block" to="/my" active-class="active">
            <img src="https://dummyimage.com/30x30/f0f" alt="">
            <div>我的</div>
        </router-link>
    </div>
</template>

<script>

export default {
    data(){
        return {

        }
    }
}
</script>
<style scoped>
    .tabbar{
        background-color: white;
        position: fixed;
        bottom: 0;
        width: 100%;
        font-size: 14px;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        padding: 5px 30px;
        border-top: 1px solid #f0f0f0;
    }
    .tabbar .block{
        text-decoration: none;
        color: #333;
    }
    .tabbar .block.active{
        color: lightskyblue;
    }
    .tabbar .block img{
        border-radius: 5px ;
    }

</style>